**** FOREIGN FIGHTERS AND CONFLICT-RELATED SEXUAL VIOLENCE. Austin C. Doctor. 2020. International Studies Quarterly. 

clear
use "/Users/austincdoctor/Documents/Working Papers/Foreign Fighters and CRSV/ISQ Manuscript/Replication Files (Doctor ISQ 2020)/replication_doctorISQ_crsvFF.dta"

gen time2 = time^2
gen time3 = time^3

sum



########## Generate Predicted Probabilities for Figure 1 ###########
* Model 5
ologit SVAC_reb_ordinal i.foreign_f secessionist islamist rel_strength forced_recruit loot duration govtbestfatal_ln lnpop SVAC_reb_lag time time2 time3, cluster(dyadid)
margins, dydx(foreign_f)





########## APPENDIX MATERIALS ###########
* Aggregate sample to the conflict-dyad level and replicate main models 
collapse (max) SVAC_reb_ordinal foreign_f duration byear rel_strength (median) secessionist islamist forced_recruit loot (sum) govtbestfatal_ln lnpop, by(dyadid)
sum
tab SVAC_reb_ordinal

* Model 1
ologit SVAC_reb_ordinal foreign_f i.byear
outreg2 using "/Users/austincdoctor/Documents/Working Papers/Foreign Fighters and CRSV/AggSampleTable.doc", replace

* Model 2
ologit SVAC_reb_ordinal foreign_f secessionist islamist rel_strength forced_recruit loot i.byear
outreg2 using "/Users/austincdoctor/Documents/Working Papers/Foreign Fighters and CRSV/AggSampleTable.doc", append

* Model 3
ologit SVAC_reb_ordinal foreign_f secessionist islamist rel_strength forced_recruit loot duration govtbestfatal_ln lnpop i.byear
outreg2 using "/Users/austincdoctor/Documents/Working Papers/Foreign Fighters and CRSV/AggSampleTable.doc", append

* Model 4 and Model 5 not applicable due to cross-sectional aggregation
